<script setup lang="ts">
import { ref } from 'vue';

const floatBtns = ref([
  { key: 'search', name: 'search', color: '#fff', backgroundColor: 'blue' },
  { key: 'scan', name: 'scan', color: '#fff', backgroundColor: 'green' }
]);

const itemClick = (e: any) => {
  console.log(e)
}
</script>

<template>
  <up-float-button
    :isMenu="true"
    bottom="10vw"
    right="5vw"
    backgroundColor="#F5626E"
    :list="floatBtns"
    @item-click="itemClick"
  >
  </up-float-button>
</template>
